<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>long</title>
	<script type="text/javascript">
		function long(arr){
			var i=arr[0].length;
			for (var m = 0; m <arr.length; m++) {
				i=arr[m];
			};
			return i;
		}
		var arr= ['北京',['天河区','白云区','番禺区','海珠区'],'东莞','深圳','珠海',['天河区1','白云区1','番禺区1',['123','456','789']]];
		document.write(long(arr));
		long(arr);


	</script>
</head>
<body>
	
</body>
</html>